package com.study.design.state;

import lombok.extern.slf4j.Slf4j;


/**
 * @version V1.0
 * @title: Main
 * @description: ${DESCRIPTION}
 * @author: wanghuilong
 * @date: 2019-06-26 14:06
 * @copyright: http://fingo.com.my/
 */
@Slf4j
public class Main {
    public static void main(String[] args) {
        log.info("addLogStart main InputParam: args : {} ", args);

        Integer[] hours = {9, 10, 12, 13, 14, 17, 19, 22};

        Work emergencyProjects = new Work();

        for (int i = 0; i < hours.length; i++) {
            Integer hour = hours[i];
            emergencyProjects.setHour(hour);

            if (hour.equals(17)) {
                emergencyProjects.setTaskFinished(false);
            }

            emergencyProjects.WriteProgram();
        }
    }
}
